package com.example.peibei.service.presenter;

import android.content.Context;

import com.dingtao.common.core.DataCall;
import com.dingtao.common.core.WDPresenter;
import com.dingtao.common.core.exception.ApiException;
import com.dingtao.common.core.http.IAppRequest;
import com.dingtao.common.util.SPUtils;
import com.example.peibei.base.SpConstant;
import com.example.peibei.wxapi.WXEntryActivity;

import io.reactivex.Observable;

public class RefreshTokenPresenter extends WDPresenter<IAppRequest> {

    public RefreshTokenPresenter(DataCall dataCall) {
        super(dataCall);
    }

    @Override
    protected Observable getModel(Object... args) {
        return iRequest.refreshToken((String)args[0]);
    }

}
